﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class CategoryBLL
    {
        private CategoryDAL dal;
        public CategoryBLL()
        {
            dal = new CategoryDAL();
        }
        /// <summary>
        /// 数据新增方法实现
        /// </summary>
        /// <param name="bo"></param>
        /// <returns></returns>
        public bool Insert(Category bo)
        {
            return dal.Insert(bo);
        }
        public bool Update(Category bo)
        {
            return dal.Update(bo);
        }
        public bool Delete(Category bo)
        {
            return dal.Delete(bo);
        }
        public Category FindByID(string id)
        {
            return dal.FindByID(id);
        }
        /// <summary>
        /// 数据列表实现
        /// </summary>
        /// <returns></returns>
        public List<Category> GetList()
        {
            return dal.GetList();
        }

    }
}
